package com.example.combwyaq.visualinterface.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.combwyaq.R;
import com.example.combwyaq.mvp.model.entity.UserItemEntity;


public class UserAdapter extends BaseQuickAdapter<UserItemEntity, BaseViewHolder> {
    public UserAdapter() {
        super(R.layout.item_user_itmes);
    }

    @Override
    protected void convert(BaseViewHolder helper, UserItemEntity item) {
        helper.setText(R.id.user_items_tv,item.name);
        helper.setImageResource(R.id.user_items_arrow_img,R.drawable.icon_pn_arrows);
        if (item.name.equals("夜间模式")){
            if (item.selFlag){
            helper.setImageResource(R.id.user_items_arrow_img,R.drawable.che_trur);
            }else{
                helper.setImageResource(R.id.user_items_arrow_img,R.drawable.che_fales);

            }
        }

    }
}
